import React, { useState } from 'react';
import { Drawer, Button } from 'antd';



export default function Index(props){
   
    const{isShow,drawer}=props;
    setVisible(isShow);
    const [visible, setVisible] = useState(false);
    const showDrawer = () => {
      setVisible(true);
    };
  
    const onClose = () => {
      setVisible(false);
    };
  
    return (
        <>
        <Drawer title="Basic Drawer" placement="right" onClose={onClose} visible={visible}>
          <p>Some contents...</p>
          <p>Some contents...</p>
          <p>Some contents...</p>
        </Drawer>
      </>
        
    )
}

